package com.test.SerializeDemo;

import java.io.Serializable;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/06/02 10:25
 **/
public class Student implements Serializable {
    private String name;
    private Integer id;
    private transient Integer score;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", score=" + score +
                '}';
    }

    public Student(String name, Integer id, Integer score) {
        this.name = name;
        this.id = id;
        this.score = score;
    }

    public Student() {
    }
}
